<template>
    <Layout>
        <div>
        porst2
        <ul>
            <li v-for="(item) in $page.posts.edges" :key="item.node.id">
                <g-link :to="item.node.path">{{item.node.title}}</g-link>
            </li>
        </ul>
    </div>
    </Layout>
</template>

<page-query>
query {
  posts: allPost {
    edges {
      node {
        id
        title
        path
      }
    }
  }
}
</page-query>

<script>
export default {
    name: "Posts2",
    metaInfo: {
        title: 'posts2'
    }
}
</script>
<style scoped>

</style>